home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / Pepper.as < prev    next >
Text File  |  2007-09-27  |  595b  |  28 lines

  1. class Pepper extends SideScroller.StaticObject
  2. {
  3.    function Pepper(__mcRef, __oLayer)
  4.    {
  5.       super(__mcRef,__oLayer);
  6.       this.bObjectBlock = false;
  7.       this.bObjectSpecial = true;
  8.       this.__get__ParentLayer().doAddListener(this);
  9.    }
  10.    function onHitSpecial(__oRef)
  11.    {
  12.       this.setState("Out");
  13.       this.doLockState();
  14.    }
  15.    function doDestroy()
  16.    {
  17.       this.__get__ParentLayer().doRemoveListener(this);
  18.       super.doDestroy();
  19.    }
  20.    function doOut()
  21.    {
  22.       if(this.isStateComplete())
  23.       {
  24.          this.doDestroy();
  25.       }
  26.    }
  27. }
  28.